package com.oe.mail.service;

import com.oe.mail.MailService;
import com.oe.mail.req.SendMailReq;
import com.oe.mail.resp.SendMailResp;
import org.apache.dubbo.config.annotation.Service;

@Service
public class MailServiceImpl implements MailService {
    public SendMailResp sendMail(SendMailReq req) {
        System.out.println("发送邮件到"+req.getEmail()+",验证码为："+req.getCode());
        SendMailResp  resp = new SendMailResp();
        resp.setSuccess(Boolean.TRUE);
        return resp;
    }
}
